package com.demo.factory01.abstractfactory.factory;

import com.demo.factory01.abstractfactory.product.Aircondition;
import com.demo.factory01.abstractfactory.product.AirconditionA;
import com.demo.factory01.abstractfactory.product.Engine;
import com.demo.factory01.abstractfactory.product.EngineA;

//为宝马320系列生产配件
public class FactoryBMW320 implements AbstractFactory{     
    @Override  
    public Engine createEngine() {
        return new EngineA();
    }  
    @Override  
    public Aircondition createAircondition() {
        return new AirconditionA();
    }  
}
